package com.gator.desig_mode.interpreter;



import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;

/**
 * @author 何章怀晓 hezhanghuaixiao
 * @version V1.0
 * @desc
 */
public class Client {

  public static void main(String[] args) throws IOException {
    String expStr = "a+b";
    Map<String, Integer> map = new HashMap<>();
    map.put("a", 10);
    map.put("b", 30);

    Calculator calculator = new Calculator(expStr);
    int run = calculator.run((HashMap<String, Integer>) map);
    System.out.println(run);



  }


}
